<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
      #father{
          width: 300px;
          height: 300px;
          border: 2px solid red;
          padding: 10px;

      }
      a{
          width: 100px;
          height: 100px;
          text-decoration: none;
          background-color: rgba(225, 143, 157, 0.99);
          color: white;
          line-height: 100px;
          text-align: center;
          display: block;
      }
      .a2,.a4{
          position: relative;
          left:200px;
          top:-100px;
      }
      .a5{
          position: relative;
          left:100px;
          top:-300px;
      }
      a:hover{
          background-color: #4B4BB4FF;
      }
    </style>
</head>
<body>
<div id="father">
    <a href="#" class="a1">链接1</a>
    <a href="#" class="a2">链接2</a>
    <a href="#" class="a3">链接3</a>
    <a href="#" class="a4">链接4</a>
    <a href="#" class="a5">链接5</a>
</div>
</body>
</html>